//
//  @ Project : Project1
//  @ File Name : GameModel.java
//  @ Date : 1/21/2013
//  @ Author : Graham Tapscott
//
//



/***
 * GameModel - this is the base class used to represent a game  
 * @author gtapscott
 *
 */
public class GameModel {
	
	// instance variables
	private String resultsText = "";
	private String searchText = "";
	private String selectedfile = "";	
	private int selectedIndex = 0;

	/***
	 * Public no-arge constructor
	 */
	public GameModel() {
	}
		
	/***
	 * getResultsText - gets the private field resultsText
	 * @return a string representing the resultsText field
	 */
	public String getResultsText(){
		return resultsText;
	}
	
	/***
	 * getSearchText - gets the private field searchText
	 * @return a string representing the searchText field
	 */
	public String getSearchText(){
		return searchText;
	}
	
	/***
	 * getSelectedIndex - gets the private field selectedIndex
	 * @return a string representing the selectedIndex field
	 */
	public int getSelectedIndex(){
		return selectedIndex;
	}
	
	/***
	 * setResultsText - sets the private field resultsText
	 * @param text a string to set the resultsText field to
	 */
	public void setResultsText(String text){
		resultsText = text;
	}
	
	/***
	 * setSearchText - sets the private field searchText
	 * @param text a string to set the searchText field to
	 */
	public void setSearchText(String text){
		searchText = text;
	}
	
	/***
	 * setSelectedIndex - sets the private field selectedIndex
	 * @param idx a string to set the selectedIndex field to
	 */
	public void setSelectedIndex(int idx){
		selectedIndex = idx;
	}

	/***
	 * getSelectedfile - sets the private field selectedfile
	 * @return a string to set the selectedfile field to
	 */
	public String getSelectedfile() {
		return selectedfile;
	}

	/***
	 * setSelectedfile - sets the private field selectedfile
	 * @param file a string to set the selectedfile field to
	 */
	public void setSelectedfile(String file) {
		selectedfile = file;
	}		
}
